Skip to main content

All Questions

11votes
12answers
3kviews

Maintainability of Boolean logic - Is nesting if statements needed?

Which of these is better for maintainability? if (byteArrayVariable != null) if (byteArrayVariable .Length != 0) //Do something with byteArrayVariable OR if ((byteArrayVariable != null)...
Vaccano's user avatar
  • 4,077

close